﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace SuaChuaCaiTao24H
{
    public partial class Home : System.Web.UI.MasterPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                try
                {
                    if (Request.QueryString["lang"] != null)
                    {
                        if (Request.QueryString["lang"].Equals("en"))
                        {
                            Session["lang"] = "en";
                        }
                        else
                            Session["lang"] = "vi";

                        if (Session["lang"].Equals("en"))
                        {
                            Response.Redirect("~/en/about-us.aspx");
                        }
                        else
                        {
                            Response.Redirect("~/vi/gioi-thieu.aspx");
                        }

                    }
                }
                catch (Exception)
                {

                }

            }
        }
    }
}